<?php



class TblPinMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TblPinMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('mgig');

		$tMap = $this->dbMap->addTable('tbl_pin');
		$tMap->setPhpName('TblPin');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('F_ID', 'FId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('F_DIST_ID', 'FDistId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('F_DIST_ID2', 'FDistId2', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('F_PIN', 'FPin', 'string', CreoleTypes::VARCHAR, true, 20);

		$tMap->addColumn('F_CPS', 'FCps', 'double', CreoleTypes::DECIMAL, true, 12);

		$tMap->addColumn('F_UNIT', 'FUnit', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('F_TYPE', 'FType', 'string', CreoleTypes::VARCHAR, true, 20);

		$tMap->addColumn('F_ACTION', 'FAction', 'string', CreoleTypes::VARCHAR, true, 20);

		$tMap->addColumn('F_ACTION_DATETIME', 'FActionDatetime', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('F_CREATED_BY', 'FCreatedBy', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('F_CREATED_DATETIME', 'FCreatedDatetime', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('F_IS_CALC', 'FIsCalc', 'int', CreoleTypes::TINYINT, true, null);

	} 
} 